package com.mqService.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.MqMessageDao;
import com.model.MQMessageVO;
import com.mqService.MQMessageService;

@Service
public class MQMessageServiceImpl implements MQMessageService{

	@Autowired
	private MqMessageDao messageDAO;
	
	@Override
	public int insert(MQMessageVO message) {
		return messageDAO.insert(message);
	}

	@Override
	public List<MQMessageVO> getMessage(String serviceName) {
		return messageDAO.getMessage(serviceName);
	}

}
